import { Entity, PrimaryGeneratedColumn, Column, BaseEntity, ManyToOne, OneToMany, JoinColumn, ManyToMany, JoinTable } from 'typeorm';
@Entity('member_third')
export class MemberThird extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: '第三方账号id' })
  third_id: number;

  @Column({ default: 0, comment: '会员id' })
  member_id: number;

  @Column({ type: 'tinyint', default: 0, comment: '平台' })
  platform: number;

  @Column({ type: 'tinyint', default: 0, comment: '应用' })
  application: number;

  @Column({ length: 128, default: '', comment: 'unionid' })
  unionid: string;

  @Column({ length: 128, default: '', comment: 'openid' })
  openid: string;

  @Column({ length: 255, default: '', comment: '头像' })
  headimgurl: string;

  @Column({ length: 255, default: '', comment: '昵称' })
  nickname: string;

  @Column({ length: 255, default: '', comment: '备注' })
  remark: string;

  @Column({ default: 0, comment: '登录次数' })
  login_num: number;

  @Column({ length: 20, default: '', comment: '登录IP' })
  login_ip: string;

  @Column({ length: 255, default: '', comment: '登录地区' })
  login_region: string;

  @Column({ type: 'datetime', nullable: true, comment: '登录时间' })
  login_time: Date;

  @Column({ type: 'tinyint', default: 0, comment: '是否禁用，1是0否' })
  is_disable: number;

  @Column({ type: 'tinyint', default: 0, comment: '是否删除，1是0否' })
  is_delete: number;

  @Column({ default: 0, comment: '添加用户id' })
  create_uid: number;

  @Column({ default: 0, comment: '修改用户id' })
  update_uid: number;

  @Column({ default: 0, comment: '删除用户id' })
  delete_uid: number;

  @Column({ type: 'datetime', nullable: true, comment: '绑定时间' })
  create_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '修改时间' })
  update_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '删除时间' })
  delete_time: Date;
}
